<form id="frm-new-entry" action="<?php echo site_url('Post/insert_process') ?>" method="POST" enctype="multipart/form-data">
    <div class="col-md-9">
        <label>Entry Title</label>
        <input type="text" name="post_title" class="form-control input-lg frm"/>

        <label>Entry Content</label>
        <textarea name="post_content" rows="25" class="form-control frm"></textarea><br/>
        <input type="file" name="thumb"/><br/>
        <input class="btn btn-lg btn-primary" type="submit" name="btn_new_post" value="Post Entry"/>
    </div>
    <div class="col-md-3">
        <label>Category</label>
        <select name="category" class="form-control input-lg frm">
            <option value="" >Select Category</option>
            <?php foreach ($categories as $cat) { ?>
                <option value="<?php echo $cat['id_category'] ?>"><?php echo $cat['category_name'] ?></option>
            <?php } ?>
        </select>
        <label>Locations</label>
        <select name="location" class="form-control input-lg frm">
            <option value="">Select Location</option>
            <?php foreach ($locations as $loc) { ?>
                <option value="<?php echo $loc['id_location'] ?>"><?php echo $loc['location_name'] ?></option>
            <?php } ?>
        </select>
        
        <label for="address">
            <div class="input-group">
                <span class="input-group-addon"><i class="fa fa-map-marker"></i></span>
                <input type="text" class="form-control input-sm" name="address" id="address" placeholder="Spesific Location" required="required"/>
            </div>
        </label>
        <a href="#" id="GetMaps" class="btn btn-sm btn-primary">Generate Map</a>
        <a href="#" class="btn btn-sm btn-danger" id="Reset">Reset Map</a>
        
        <div class="fisarmonica">
            <div class="input_dinamici">
                <label for="nation">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-flag"></i></span>
                        <input class="form-control input-sm" type="text" name="nation" id="nation" required="required"/>
                    </div>
                </label>
                
                <label for="prov">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-globe"></i></span>
                        <input class="form-control input-sm" type="text" name="prov" id="prov" required="required"/>
                    </div>
                </label>
                
                <label for="latitude">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-minus-square"></i></span>
                        <input class="form-control input-sm" type="text" name="latitude" id="latitude" required="required"/>
                    </div>
                </label>
                
                <label for="longitude">
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-plus-square"></i></span>
                        <input class="form-control input-sm" type="text" name="longitude" id="longitude" required="required"/>
                    </div>
                </label>
                <br/>

            </div>

            <div id="maps"></div>

            <div class="clear"></div>
        </div>
    </div>
</form>